package com.dayouzi.crawler_monitor.pojo.query;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CrawlerListQuery", description="爬虫列表查询字段")
public class CrawlerListQuery {

    @ApiModelProperty(value = "爬虫名称")
    private String codeName;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "所属服务器")
    private String machine;

    @ApiModelProperty(value = "负责人")
    private String person;

    @ApiModelProperty(value = "爬虫类型")
    private Integer spiderType;

    @ApiModelProperty(value = "isJava")
    private Integer isJava;

    @ApiModelProperty(value = "isValid")
    private Integer isValid;

    @ApiModelProperty(value = "排序字段(单列排序用)")
    private HashMap orderBys;

//    @ApiModelProperty(value = "排序字段(多列排序用)")
//    private List<HashMap> orderBys;

    @ApiModelProperty(value = "置顶数据的用户id")
    private Integer userId;

    @ApiModelProperty(value = "最近运行时间开始时间")
    private String startTime;

    @ApiModelProperty(value = "最近运行时间结束时间")
    private String endTime;
}
